using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace ADiKt {
    class MenuEntry : Entry {
        public event EventHandler<PlayerIndexEventArgs> Selected;

        /// <summary> constructs a spining menu item </summary>
        /// <param name="dispText">the text displayed by the item </param>
        public MenuEntry(string dispText) {
            Text = dispText;
        }

        /// <summary> Method for raising the Selected event </summary>
        protected internal virtual void OnSelectEntry(PlayerIndex playerIndex) {
            if (Selected != null)
                Selected(this, new PlayerIndexEventArgs(playerIndex));
        }
    }
}